//
//  SpotSeparaCell.m
//  hai游～
//
//  Created by jakf_17 on 15/5/25.
//  Copyright (c) 2015年 jakf_17. All rights reserved.
//

#import "SpotSeparaCell.h"

@implementation SpotSeparaCell




- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMyCell];
    }
    return self;
}
- (void)createMyCell
{
    UIColor *color = [UIColor colorWithRed:220 / 255.0 green:220 / 255.0 blue:220 / 255.0 alpha:1];
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(50, 20, [[UIScreen mainScreen] bounds].size.width - 100, 35)];
    button.backgroundColor = [UIColor whiteColor];
    [button setTitleColor:[UIColor colorWithRed:210 / 255.0 green:210 / 255.0 blue:210 / 255.0 alpha:1] forState:UIControlStateNormal];
    [button setTitle:@"更多印象" forState:UIControlStateNormal];
    button.layer.cornerRadius = 35 / 2;
    button.layer.borderWidth = 1;
    button.layer.borderColor = color.CGColor;
    [self.contentView addSubview:button];
    [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [button release];
    
    
    UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 70, [[UIScreen mainScreen] bounds].size.width, 40)];
    [self.contentView addSubview:textLabel];
    textLabel.textAlignment = NSTextAlignmentCenter;
    textLabel.text = @"·基本信息·";
    textLabel.textColor = [UIColor colorWithRed:102 / 255.0 green:153 / 255.0 blue:204 / 255.0 alpha:1];
    textLabel.font = [UIFont boldSystemFontOfSize:23];
    [self.contentView addSubview:textLabel];
    UIView *leftView = [[UIView alloc] initWithFrame:CGRectMake(30, 91, 100, 1)];
    leftView.backgroundColor = color;
    [self.contentView addSubview:leftView];
    [leftView release];
    UIView *rightView = [[UIView alloc] initWithFrame:CGRectMake([[UIScreen mainScreen] bounds].size.width - 130, 91, 100, 1)];
    rightView.backgroundColor = color;
    [self.contentView addSubview:rightView];
    [rightView release];
    [textLabel release];

    
}
- (void)buttonAction:(id)sender
{
    self.blcok();
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
